#######################################
# Effect
install(FILES main.qml DESTINATION ${KDE_INSTALL_DATADIR}/deepin-kwin/effects/desktopgrid/)

set(desktopgrid_SOURCES
    desktopgrid.cpp
    main.cpp
)

kconfig_add_kcfg_files(desktopgrid_SOURCES
    desktopgridconfig.kcfgc
)

kwin4_add_effect_module(kwin4_effect_desktopgrid ${desktopgrid_SOURCES})

#######################################
# Config
set(kwin_desktopgrid_config_SRCS desktopgrid_config.cpp)
ki18n_wrap_ui(kwin_desktopgrid_config_SRCS desktopgrid_config.ui)
kconfig_add_kcfg_files(kwin_desktopgrid_config_SRCS desktopgridconfig.kcfgc)

kwin_add_effect_config(kwin_desktopgrid_config ${kwin_desktopgrid_config_SRCS})

target_link_libraries(kwin_desktopgrid_config
    KF5::Completion
    KF5::ConfigWidgets
    KF5::GlobalAccel
    KF5::I18n
    KF5::XmlGui
    Qt::Quick
    deepin-kwineffects
    KWinEffectsInterface
)
